package com.study.d004;

import javafx.application.Application;
import javafx.stage.Stage;

public class HelloWorld extends Application{
	public static void main(String[] args) {
		System.out.println("Hello World.");
		/*启动方式一*/
		//launch(args);

		/*启动方式二*/
		Application.launch(HelloWorld.class, args);
	}

	@Override
	public void start(Stage stage) throws Exception {
		stage.setTitle("我的第一个窗口.");
		stage.show();

	}
}
